﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using QBZ.Evaluation.Domains;

namespace QBZ.Evaluation.Views.Controllers
{
    public class RoleController : Controller
    {
        private RoleDomain _role;

        public RoleController(RoleDomain role)
        {
            _role = role;
        }

        public IActionResult Index()
        {
            return View();
        }

        public IActionResult AddRole()
        {
            return Json(_role.AddRole());
        }
    }
}